<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./pages/home.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  A page written using lampshade modules.
 */

require_once("./modules/page/page.php");
require_once("./modules/content_items/article.php");
require_once("./modules/layout/default_homepage_layout.php");
require_once("./modules/html/heading.php");
require_once("./modules/html/link.php");
require_once("./modules/html/style.php");

class HomePage extends Page
   {
      public function Load($get, $post)//pass in the GET/POST VARS?
      {         
         //header & footer
         $this->Header->Heading_text = "Lampshade";
         $this->Header->Heading_size = "h1";
         
         //content
         $new_article = new Article("lampshade 0.1 almost ready!");
         $new_article->Article_text = 'After lots and lots of work by <a href="index.php?page=cobolt">me</a> lampshade
         is nearing a usable state. I\'ve matured many features and streamlined the layout engine. lampshade now also
         includes site wide themes and error page themes. After the menu system is complete, we should be able to
         include database integration and soon after that user site customisation via web interface!';
         $new_article->Date = "22 December 2011";
         
         $article = new Article("lampshade 0.1");
         $google_code_link = new Link("http://code.google.com/p/lampshade/", "google code page");
         $article->Article_text = "This page was generated using lampshade 0.1.
         Lampshade is a php api for writing powerful and easily customizeable web sites
         and web applications. Please check out our " . $google_code_link->GetHtml() . " to get
         involved with development. We are looking for people with skill in the following areas:
         <lu>
            <li>PHP</li>
            <li>CSS</li>
            <li>Creating web graphics</li>
            <li>MySQL database design</li>
            <li>Javascript programmers</li>
         </lu>";
         $article->Date = "1 December 2011";
         
         $this->Content->Content_items = array($new_article,$article);
         $this->SetLayout(new Default_homepage_layout);
         $this->SetContent($this->Content, new Default_homepage_layout);  
         $this->Render();

      }
   }
   
?>